<template>
  <div class="content-wrap">
    <h1>i am index</h1>
    <h1>请求次数：<Fliqo :value="homepage" :duration="2000" isFast></Fliqo></h1>
    <adv-button @click="log">hello</adv-button>
  </div>
</template>

<script setup lang="ts">
import { getStatistics } from "@/api/index";
import { onMounted, ref } from "vue";
import { Fliqo } from "leisure-lib";

const homepage = ref(0);
const log = () => {
  getStatistics().then((res) => {
    homepage.value = res.homepage;
  });
};

onMounted(() => {
  log();
});
</script>

<style scoped></style>
